Skip to content

Port fixes from 1.2.0 tag to stretch release branch; update EV3 port names#483

Merged
WasabiFan merged 5 commits intoev3dev-stretchfrom
platform-fixes
Jul 28, 2018
Merged

Port fixes from 1.2.0 tag to stretch release branch; update EV3 port names#483
WasabiFan merged 5 commits intoev3dev-stretchfrom
platform-fixes

Conversation

@WasabiFan
Copy link
Copy Markdown
Member

@WasabiFan WasabiFan commented Jul 18, 2018

These changes originally got lost; I tried to port the platform changes properly but I don't have the devices to test it. @dlech could you look over this and verify the platform config?

Result of ev3dev/ev3dev#1130

Fixes #476

@WasabiFan WasabiFan requested a review from dlech July 18, 2018 03:24
Comment thread ev3dev2/_platform/pistorms.py Outdated

BUTTONS_FILENAME = None
BUTTONS_FILENAME = '/dev/input/by-path/platform-3f804000.i2c-event'
EVDEV_DEVICE_NAME = None
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure what this name should be; suggestions welcome.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assume this is meant to match the event device name, which would be PiStorms in this case.

https://github.com/ev3dev/lego-linux-drivers/blob/ev3dev-stretch/pistorms/pistorms_input.c#L205

@WasabiFan WasabiFan changed the title Port fixes from 1.2.0 tag to stretch release branch Port fixes from 1.2.0 tag to stretch release branch; update EV3 port names Jul 18, 2018
Comment thread ev3dev2/_platform/pistorms.py Outdated

INPUT_1 = 'pistorms:BBS1'
INPUT_1 = 'pistorms:BAS1'
INPUT_2 = 'pistorms:BBS2'
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

INPUT_2 = 'pistorms:BAS2'

Comment thread ev3dev2/_platform/pistorms.py Outdated

BUTTONS_FILENAME = None
BUTTONS_FILENAME = '/dev/input/by-path/platform-3f804000.i2c-event'
EVDEV_DEVICE_NAME = None
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assume this is meant to match the event device name, which would be PiStorms in this case.

https://github.com/ev3dev/lego-linux-drivers/blob/ev3dev-stretch/pistorms/pistorms_input.c#L205

Comment thread debian/changelog Outdated
@@ -1,3 +1,30 @@
python-ev3dev (1.2.0) stable; urgency=medium
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since we are changing the package name, it would probably be easier to just start the changelog over rather than try to list all of the changes from 1.x to 2.x.

Comment thread debian/gbp.conf
@@ -0,0 +1,3 @@
[DEFAULT]
debian-branch=ev3dev-stretch
debian-tag=ev3dev-stretch/%(version)s
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this will require you to change the branch name from stretch to ev3dev-stretch in order to build the package using gbp.

Since we will have both a 1.x and 2.x in ev3dev-strech, I was thinking of suggesting that this repository have ev3dev-stretch-1.x and ev3dev-stretch-2.x branches, in which case this would need to be changed to debian-branch=ev3dev-stretch-2.x (tag line doesn't need to be changed - and probably best if it isn't changed).

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I changed the branch to stretch to match the repo. It might make more sense to switch the branch names to ev3dev-{stretch, jessie} to match other repos, but I'm don't particularly care.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Making them all the same (ev3dev-stretch) would be my inclination, but you have the parallel 1.x and 2.x branches here, so calling this branch stretch-2.x might make more sense, perhaps?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would you be opposed to ev3dev-stretch-1.x and ev3dev-stretch? Or perhaps ev3dev-stretch-legacy for the 1.x series? My hope is that I can avoid typing -2.x if it isn't necessary.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

First option sounds fine. (If you make ev3dev-stretch the default branch on GitHub, you should never have to type it in anyways 😉 .)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

First option sounds fine.

I just pushed the new branches and deleted the old stretch[-1.x] branches. I don't have admin access on this repo though; could you switch the default branch to ev3dev-jessie?

If you make ev3dev-stretch the default branch on GitHub, you should never have to type it in anyways 😉

We'll do that once we release the first stretch version, I think. If everyone's running code from the jessie branch I'd rather make that the default -- once there's Stretch code out in the wild that changes.

@WasabiFan WasabiFan changed the base branch from stretch to ev3dev-stretch July 20, 2018 02:17
@WasabiFan
Copy link
Copy Markdown
Member Author

I think I fixed everything that was pointed out in review so I'm going to merge this. If there are any issues we can fix it in a future PR (either one of us notices it or people report it).

@WasabiFan WasabiFan merged commit ecfbc29 into ev3dev-stretch Jul 28, 2018
@WasabiFan WasabiFan deleted the platform-fixes branch November 10, 2018 00:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants